package com.ebao.tec.vo;

import com.ebao.tec.entity.Company;

import java.util.List;

/**
 * @DESCRIPTION:
 * @Author: WangLt
 * @Date: 2020/11/27
 */
public class ParentCompanyVO {

    private Integer companyId;
    private String companyName;
    private List<Company> sons;

    public ParentCompanyVO(Integer companyId, String companyName, List<Company> sons) {
        this.companyId = companyId;
        this.companyName = companyName;
        this.sons = sons;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public List<Company> getSons() {
        return sons;
    }

    public void setSons(List<Company> sons) {
        this.sons = sons;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ParentCompanyVO{");
        sb.append("companyId=").append(companyId);
        sb.append(", companyName='").append(companyName).append('\'');
        sb.append(", sons=").append(sons);
        sb.append('}');
        return sb.toString();
    }
}
